package com.terrorism.sdk.utils;

import android.app.Activity;
import android.content.pm.PackageManager;

/**
 * @since August 20, 2014
 * @author hoangcaomobile
 *
 */
public class CameraUtils {
	
	// check is have camera
		public static boolean isHaveCamera(Activity mActivity) {
			PackageManager pm = mActivity.getPackageManager();
			if (pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_ANY)
					|| pm.hasSystemFeature(PackageManager.FEATURE_CAMERA_FRONT)) {
				return true;
			} else {
				return false;
			}
		}
		// --

}
